<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>template grammar</title>
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
	
	<div id="root">
		<h1>插值</h1>
		<h3>hello,{{msg}}</h3>
		<h3>hello,{{msg.toUpperCase()}}</h3>
		
		<hr>

		<h1>指令语法</h1>
		<a v-bind:href='url'>点我去百度</a>
		<a :href="url" :x=msg>点我去百度</a>
		<hr>
	</div>

	<script type="text/javascript">
		new Vue ({
			el:"#root",
			data:{
				msg:'dagoose',
				url:'https://www.baidu.com'
			}
		})
	</script>
</body>
</html>